﻿#include "Logger.h"
Logger* Logger::m_pLoggerObj = nullptr;
Logger::Logger(QObject *parent) : QObject(parent)
{

}

Logger *Logger::getInstance()
{
    if (nullptr == m_pLoggerObj) {
        m_pLoggerObj = new Logger();
    }

    return m_pLoggerObj;
}

void Logger::printf(QString str, int type)
{
    emit evt_printfLog(str,type);
}
